{yun:}include file="$wapstyle/header_cont.htm"{/yun}  
<style>
.regtab li{
  margin: 0 5px !important;
}
</style>
<div class="yunwapreg_box">
<section class="list">
  <article>
	
    {yun:}if $wxid &&($wxnickname || $wxpic){/yun}
     <div class="lg_at">
        <dl>
            <dt><img style="width:75px;height:75px;border-radius:50px;" src="{yun:}$wxpic{/yun}"/></dt>
            <dd class="lg_at_tit">{yun:}$wxnickname{/yun}</dd>
            <dd class="lg_at_cr">您已登录微信账号</dd>
        </dl>
     </div>
	  {yun:}/if{/yun}
    
  <div class="regform">
    <ul class="regtab">
      {yun:}if $config.reg_moblie=='1'{/yun}
      <li class="{yun:}if $type != 1 && $type != 3{/yun}current{yun:}/if{/yun}"><a href="{yun:}url m=wap c=register usertype=2 type=2{/yun}" style="display:block;">手机注册</a></li>
      {yun:}/if{/yun}
      {yun:}if $config.reg_email=='1'{/yun}
      <li class="{yun:}if $type==3{/yun}current{yun:}/if{/yun}"><a href="{yun:}url m=wap c=register usertype=2 type=3{/yun}" style="display:block;">邮箱注册</a></li>
      {yun:}/if{/yun}
      {yun:}if $config.reg_user=='1'{/yun}
      <li class="{yun:}if $type == 1{/yun}current{yun:}/if{/yun}"><a href="{yun:}url m=wap c=register usertype=2 type=1{/yun}" style="display:block;">用户名注册</a></li>
      {yun:}/if{/yun}
    </ul>

    <form method="post" action="{yun:}$config_wapdomain{/yun}/index.php?c=register" onsubmit="return checkRegUser(this);" autocomplete="off">  
      <input name="regway" id="regway" type="hidden" value="{yun:}$type{/yun}"/>
      <input name="usertype" id="usertype" type="hidden" value="2"/>

      <dl class="forminputitem">

      {yun:}if $config.reg_email=='1' && $type == 3{/yun}
        <dd >
          <div class="c ico_name inputitem_w">
                 <i class="reg_icon_font login_icon_n3 "></i>
              <input class="inputitemtxt" placeholder="填写邮箱" name="email" id="email" type="text" onBlur="check_email();">
            </div>
        </dd>
        
        {yun:}if strpos($config.code_web,"注册会员")!==false{/yun}
        <dd>
         {yun:}if $config.code_kind==3{/yun}  
          <!-- geetest -->
          <div id="mask"></div>
          <div id="popup-captcha-mobile" data-id='subreg' data-type='click'></div>
          <input type='hidden' id="popup-submit">
          {yun:}else{/yun}
              <div class="c ico_name inputitem_w">
                    <i class="reg_icon_font login_icon_n8 "></i>
                <input class="inputitemtxt" placeholder="填写验证码" name="checkcode" id="checkcode" type="text" maxlength="4"/>
                   <div class="rg_img">
                   <img id="vcodeimg" class="authcode" src="{yun:}$config.sy_wapdomain{/yun}/authcode.inc.php" onclick="checkCode('vcodeimg');"/>
                   <input type="hidden" id="code_kind" value="1" />
                   </div>
              </div>
          {yun:}/if{/yun}
        </dd>
        {yun:}/if{/yun}

        <dd>
          <div class="c ico_pwd2 inputitem_w">
            <i class="reg_icon_font login_icon_n2"></i>
            <input class="inputitemtxt" onfocus="this.type='password'" placeholder="填写密码" name="password" id="password" type="text">
            <em class="viewpwd"></em></div>
        </dd>

  		  {yun:}if $config.reg_passconfirm=='1'{/yun}
  		  <dd>
          <div class="c ico_pwd2 inputitem_w">
               <i class="reg_icon_font login_icon_n2_1 "></i>
            <input class="inputitemtxt" onfocus="this.type='password'" placeholder="确认密码" name="passconfirm" id="passconfirm"  type="text">
            <em class="viewpwd"></em></div>
        </dd>
	      {yun:}/if{/yun}
		 
        {yun:}if $config.reg_comname=='1'{/yun}
        <dd >
          <div class="c ico_name inputitem_w">
               <i class="reg_icon_font login_icon_n5 "></i>
            <input class="inputitemtxt" placeholder="企业名称" name="comname" id="comname" type="text">
          </div>
        </dd>
        {yun:}/if{/yun}

        {yun:}if $config.reg_comaddress=='1'{/yun}
        <dd>
          <div class="c inputitem_w ico_email">
             <i class="reg_icon_font login_icon_n7 "></i>
            <input class="inputitemtxt"  placeholder="填写企业地址" name="address" id="address" type="text">
          </div>
        </dd>
        {yun:}/if{/yun}

  			{yun:}if $config.reg_comlink=='1' || $config.reg_real_name_check == 1{/yun}
			  <dd >
				<div class="c ico_name inputitem_w">
				  <i class="reg_icon_font login_icon_n6 "></i>
				  <input class="inputitemtxt" placeholder="联系人真实姓名" name="linkman" id="linkman" type="text">
				</div>
			  </dd>
			 
			  {yun:}/if{/yun}
			  {yun:}if $config.reg_comtel==1 || $config.reg_real_name_check == 1{/yun}
			
			<dd >
				<div class="c ico_name inputitem_w">
					 <i class="reg_icon_font login_icon_n4 "></i>
				  <input class="inputitemtxt" placeholder="填写手机号码" name="moblie" id="moblie" type="text" onblur="check_moblie()" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')">
				</div>
			  </dd>
			   {yun:}/if{/yun}
     
        {yun:}if $config.reg_real_name_check == 1{/yun}
			  <dd >
				<div class="c ico_name inputitem_w">
					<i class="reg_icon_font login_icon_n9 "></i>
					 <input class="inputitemtxt" placeholder="填写短信验证码" name="moblie_code" id="moblie_code" type="text"/>
					 <div class="rg_nmb">
						 <a class="rg_nmb_hq" href="javascript:void(0);" id="subreg" onclick="sendmsg('vcode_img');"><span id="time">获取验证码</span></a>
					 </div>
				</div>
			  </dd>
			  {yun:}/if{/yun}
	  
      {yun:}elseif $type==2 || $type == ''{/yun}
        <dd >
          <div class="c ico_name inputitem_w">
           <i class="reg_icon_font login_icon_n4 "></i>
            <input class="inputitemtxt" placeholder="填写手机号码" name="moblie" id="moblie" type="text" onBlur="check_moblie();" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')">
          </div>
        </dd>
  
  			{yun:}if strpos($config.code_web,"注册会员")!==false{/yun}
			  <dd >
  			  {yun:}if $config.code_kind==3{/yun}	
  				<!-- geetest -->
  				<div id="mask"></div>
  				<div id="popup-captcha-mobile" data-id='subreg' data-type='click'></div>
  				<input type='hidden' id="popup-submit">

  				{yun:}else{/yun}
          <div class="c ico_name inputitem_w">
             <i class="reg_icon_font login_icon_n8 "></i>
            <input class="inputitemtxt" placeholder="填写验证码" name="checkcode" id="checkcode" type="text" maxlength="4"/>
               <div class="rg_img">
                    <img id="vcode_img" class="authcode" src="{yun:}$config.sy_wapdomain{/yun}/authcode.inc.php" onclick="checkCode('vcode_img');"/>
                    <input type="hidden" id="code_kind" value="1" />
               </div>
          </div>
  				{yun:}/if{/yun}
				</dd>
			  {yun:}/if{/yun}

		    <dd >
          <div class="c ico_name inputitem_w">
                <i class="reg_icon_font login_icon_n9 "></i>
               <input class="inputitemtxt" placeholder="填写短信验证码" name="moblie_code" id="moblie_code" type="text"/>
               <div class="rg_nmb">
                     <a class="rg_nmb_hq" href="javascript:void(0);" id="subreg" onclick="sendmsg('vcode_img');"><span id="time">获取验证码</span></a>
                 </div>
          </div>
        </dd>

        <dd>
          <div class="c ico_pwd2 inputitem_w">
             <i class="reg_icon_font login_icon_n2 "></i>
            <input class="inputitemtxt" onfocus="this.type='password'" placeholder="填写密码" name="password" id="password" type="text">
            <em class="viewpwd"></em></div>
        </dd>

        {yun:}if $config.reg_passconfirm=='1'{/yun}
        <dd>
          <div class="c ico_pwd2 inputitem_w">
             <i class="reg_icon_font login_icon_n2_1 "></i>
            <input class="inputitemtxt" onfocus="this.type='password'" placeholder="确认密码" name="passconfirm" id="passconfirm"  type="text">
            <em class="viewpwd"></em>
          </div>
        </dd>
        {yun:}/if{/yun}

        {yun:}if $config.reg_comname=='1'{/yun}
        <dd >
          <div class="c ico_name inputitem_w">
               <i class="reg_icon_font login_icon_n5 "></i>
            <input class="inputitemtxt" placeholder="企业名称" name="comname" id="comname" type="text">
          </div>
        </dd>
        {yun:}/if{/yun}

        {yun:}if $config.reg_comaddress=='1'{/yun}
        <dd>
          <div class="c inputitem_w ico_email">
             <i class="reg_icon_font login_icon_n7 "></i>
            <input class="inputitemtxt"  placeholder="填写企业地址" name="address" id="address" type="text">
          </div>
        </dd>
        {yun:}/if{/yun}

        {yun:}if $config.reg_comlink=='1' || $config.reg_real_name_check == 1{/yun}
        <dd >
          <div class="c ico_name inputitem_w">
            <i class="reg_icon_font login_icon_n6 "></i>
            <input class="inputitemtxt" placeholder="联系人真实姓名" name="linkman" id="linkman" type="text">
          </div>
        </dd>
        {yun:}/if{/yun} 

        {yun:}if $config.reg_comemail=='1'{/yun}
        <dd>
          <div class="c inputitem_w ico_email">
            <i class="reg_icon_font login_icon_n3 "></i>
            <input class="inputitemtxt"  placeholder="填写邮箱地址" name="email" id="email" type="text" onblur="check_email()">
          </div>
        </dd>
        {yun:}/if{/yun}
			  	     
       {yun:}elseif $type==1{/yun}
         <dd >
            <div class="c ico_name inputitem_w">
              <i class="reg_icon_font login_icon_n1 "></i>
              <input class="inputitemtxt" placeholder="填写用户名" name="username" id="username" type="text" onblur="check_username();">
            </div>
          </dd>
		      
          {yun:}if strpos($config.code_web,"注册会员")!==false{/yun}
            <dd >
            {yun:}if $config.code_kind==3{/yun} 
              <!--geetest-->
              <div id="mask"></div>
              <div id="popup-captcha-mobile" data-id='subreg' data-type='click'></div>
              <input type='hidden' id="popup-submit">

              {yun:}else{/yun}
            
                  <div class="c ico_name inputitem_w">
                      <i class="reg_icon_font login_icon_n8 "></i>
                    <input class="inputitemtxt" placeholder="填写验证码" name="checkcode" id="checkcode" type="text" maxlength="4"/>
                    <div class="rg_img">
                    <img id="vcode_img" class="authcode" src="{yun:}$config.sy_wapdomain{/yun}/authcode.inc.php" onclick="checkCode('vcode_img');"/>
                    <input type="hidden" id="code_kind" value="1" />
                    </div>
                  </div>
          
            {yun:}/if{/yun}
            </dd>
           {yun:}/if{/yun}

          <dd>
            <div class="c ico_pwd2 inputitem_w">
              <i class="reg_icon_font login_icon_n2 "></i>
              <input class="inputitemtxt" onfocus="this.type='password'" placeholder="填写密码" name="password" id="password" type="text">
              <em class="viewpwd"></em></div>
          </dd>

    		  {yun:}if $config.reg_passconfirm=='1'{/yun}
    		  <dd>
            <div class="c ico_pwd2 inputitem_w">
               <i class="reg_icon_font login_icon_n2_1 "></i>
              <input class="inputitemtxt" onfocus="this.type='password'" placeholder="确认密码" name="passconfirm" id="passconfirm"  type="text">
              <em class="viewpwd"></em></div>
          </dd>
		      {yun:}/if{/yun}
			
		      {yun:}if $config.reg_comname=='1'{/yun}
          <dd >
            <div class="c ico_name inputitem_w">
                 <i class="reg_icon_font login_icon_n5 "></i>
              <input class="inputitemtxt" placeholder="企业名称" name="comname" id="comname" type="text">
            </div>
          </dd>
          {yun:}/if{/yun}

          {yun:}if $config.reg_comaddress=='1'{/yun}
          <dd>
            <div class="c inputitem_w ico_email">
               <i class="reg_icon_font login_icon_n7 "></i>
              <input class="inputitemtxt"  placeholder="填写企业地址" name="address" id="address" type="text">
            </div>
          </dd>
          {yun:}/if{/yun}

		      {yun:}if $config.reg_comlink=='1' || $config.reg_real_name_check == 1{/yun}
          <dd >
            <div class="c ico_name inputitem_w">
              <i class="reg_icon_font login_icon_n6 "></i>
              <input class="inputitemtxt" placeholder="联系人真实姓名" name="linkman" id="linkman" type="text">
            </div>
          </dd>
          {yun:}/if{/yun}	

          {yun:}if $config.reg_comtel=='1' || $config.reg_real_name_check == 1{/yun}
          <dd >
            <div class="c ico_name inputitem_w">
                 <i class="reg_icon_font login_icon_n4 "></i>
              <input class="inputitemtxt" placeholder="填写手机号码" name="moblie" id="moblie" type="text" onblur="check_moblie()" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')">
            </div>
          </dd>
          {yun:}/if{/yun}
		 
      		 {yun:}if $config.reg_real_name_check == 1{/yun}
      		 <dd >
      			<div class="c ico_name inputitem_w">
      				<i class="reg_icon_font login_icon_n9 "></i>
      				 <input class="inputitemtxt" placeholder="填写短信验证码" name="moblie_code" id="moblie_code" type="text"/>
      				 <div class="rg_nmb">
      					 <a class="rg_nmb_hq" href="javascript:void(0);" id="subreg" onclick="sendmsg('vcode_img');"><span id="time">获取验证码</span></a>
      				 </div>
      			</div>
      		  </dd>
      		 {yun:}/if{/yun}

           {yun:}if $config.reg_comemail=='1'{/yun}
            <dd>
              <div class="c inputitem_w ico_email">
                <i class="reg_icon_font login_icon_n3 "></i>
                <input class="inputitemtxt"  placeholder="填写邮箱地址" name="email" id="email" type="text" onblur="check_email()">
              </div>
            </dd>
            {yun:}/if{/yun}
		 
        {yun:}/if{/yun}
     
          <dd>
            <span class="photochk" style="width:100%">
            <input id="xieyi" type="checkbox" name="xieyi" value="1" class="inputChk" checked="checked">
            <em style="width:100%">我已阅读并同意《<a href="javascript:void(0);" onclick="showservices()">{yun:}$config.sy_webname{/yun}注册协议</a>》</em></span>
          </dd>

          <dd>
            <input type="hidden" id="send" value="0" />
            <input type="hidden" id="isRealnameCheck" value="{yun:}$config.reg_real_name_check{/yun}"/>
            <input type="submit" name="submit" id="subreg" value="提交" class="inputSubmit">
          </dd>
        </dl>
      </form>
    </div>
    <div class="reg_other_tit"><span class="reg_other_tit_s">注册其他用户类型</span></div>
    <ul class="reg_other">
    <li><a href="{yun:}url m=wap c=register{/yun}">个人注册</a></li>
    </ul>
  </article>
</section>
<!--注册协议弹出框-->
<div style="width:100%;height:100%; background:rgba(51,51,51,0.5); position:fixed;left:0px;top:0px;z-index:1000000;display:none" id="services">
	<div style="width:100%; position:absolute;left:0px;top:40px;">
	 <div class="reg_xybox">
    <div class="reg_xybox_tit"><span class="reg_xybox_tit_s">注册协议</span><a href="javascript:void(0);" onclick="$('#services').hide();" class="reg_xybox_tit_a">关闭</a></div>
		<div class="reg_xybox_p">  
        {yun:}$content.content{/yun}
        </div> 
     </div> 
     </div>
</div> 
</div>
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/layer/layer.m.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/prefixfree.min.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/reg_ajax.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/geetest/gt.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/geetest/mobile.js?v={yun:}$config.cachecode{/yun}" type="text/javascript"></script>

{yun:}include file="$wapstyle/footer.htm"{/yun}